{extend name='public/base' /}
{block name='title'}{$title}{/block}
{block name='main'}
    <div class="layui-body custom-top">
        <fieldset class="layui-elem-field layui-field-title">
            <legend class="custom-legend">角色权限设置</legend>
            <div class="layui-main">
                <div class="layui-btn-group custom-top">
                    <button data-method="add" class="layui-btn">新增</button>
                </div>
                <div class="layui-field-box table-responsive">
                    <table id="role-list" class="table table-bordered table-hover table-condensed">
                        <colgroup>
                            <col width="160">
                            <col width="200">
                            <col width="10">
                            <col width="80">
                        </colgroup>
                        <thead>
                        <tr>
                            <th class="layui-hide">序号</th>
                            <th>角色名</th>
                            <th>说明</th>
                            <th>编辑权限</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name='list' id='vo'}
                        <tr>
                            <td class="layui-hide">{$vo.role_id}</td>
                            <td>{$vo.role_name}</td>
                            <td>{$vo.role_desc}</td>
                            <td><div class="layui-btn-group">
                                <button data-method="edit" data-role-id="{$vo.role_id}" class="layui-btn layui-btn-primary layui-btn-small">
                                    <i class="layui-icon">&#xe654;</i>
                                </button>
                            </div></td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
            </div>
        </fieldset>
    </div>
{/block}